import datetime
id=input("输入身份证号：")

year=id[6:10]
month=id[10:12]
day=id[12:14]
a=id[-2]


if int(a)%2 !=0:
    n="男"
else:
    n="女"

age=int(datetime.datetime.today().year)-int(year)

print(f'出生日期：{year}年{month}月{day}日,性别为{n},年龄为{age}')






